package com.briup.day2;

import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ret = 0;
        for (int i = 1; i < n; i++) {
            if (n % i == 0) {
                ret += i;
            }
        }
        if (n == ret) {
            System.out.println(n + "是完全数");
        } else {
            System.out.println(n + "不是完全数");
        }
    }
}
